package com.example.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * PlaceOrderRequest
 *  下单request
 * @author liujin
 * @date 2020/12/18 14:09
 */
@ApiModel
@Data
public class PlaceOrderRequest implements Serializable {

    @ApiModelProperty(value = "客户ID", required = true)
    @NotNull
    private Long customerId;


    @ApiModelProperty(value = "商品信息", required = true)
    @Size(min = 1)
    private Set<OrderItemRequest> orderItemSet = new HashSet<>();

}
